package com.icart.entities;

import javax.persistence.*;
import java.math.BigDecimal;

@Entity
@Table(name = "mk_discfee", schema = "ams", catalog = "")
public class MkDiscfeeEntity {
    private long feeid;
    private String feeobj;
    private Long treeid;
    private String feecaltype;
    private BigDecimal feeval;
    private String remark;
    private Long feeobjid;

    @Id
    @Column(name = "feeid")
    public long getFeeid() {
        return feeid;
    }

    public void setFeeid(long feeid) {
        this.feeid = feeid;
    }

    @Basic
    @Column(name = "feeobj")
    public String getFeeobj() {
        return feeobj;
    }

    public void setFeeobj(String feeobj) {
        this.feeobj = feeobj;
    }

    @Basic
    @Column(name = "treeid")
    public Long getTreeid() {
        return treeid;
    }

    public void setTreeid(Long treeid) {
        this.treeid = treeid;
    }

    @Basic
    @Column(name = "feecaltype")
    public String getFeecaltype() {
        return feecaltype;
    }

    public void setFeecaltype(String feecaltype) {
        this.feecaltype = feecaltype;
    }

    @Basic
    @Column(name = "feeval")
    public BigDecimal getFeeval() {
        return feeval;
    }

    public void setFeeval(BigDecimal feeval) {
        this.feeval = feeval;
    }

    @Basic
    @Column(name = "remark")
    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Basic
    @Column(name = "feeobjid")
    public Long getFeeobjid() {
        return feeobjid;
    }

    public void setFeeobjid(Long feeobjid) {
        this.feeobjid = feeobjid;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        MkDiscfeeEntity that = (MkDiscfeeEntity) o;

        if (feeid != that.feeid) return false;
        if (feeobj != null ? !feeobj.equals(that.feeobj) : that.feeobj != null) return false;
        if (treeid != null ? !treeid.equals(that.treeid) : that.treeid != null) return false;
        if (feecaltype != null ? !feecaltype.equals(that.feecaltype) : that.feecaltype != null) return false;
        if (feeval != null ? !feeval.equals(that.feeval) : that.feeval != null) return false;
        if (remark != null ? !remark.equals(that.remark) : that.remark != null) return false;
        if (feeobjid != null ? !feeobjid.equals(that.feeobjid) : that.feeobjid != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = (int) (feeid ^ (feeid >>> 32));
        result = 31 * result + (feeobj != null ? feeobj.hashCode() : 0);
        result = 31 * result + (treeid != null ? treeid.hashCode() : 0);
        result = 31 * result + (feecaltype != null ? feecaltype.hashCode() : 0);
        result = 31 * result + (feeval != null ? feeval.hashCode() : 0);
        result = 31 * result + (remark != null ? remark.hashCode() : 0);
        result = 31 * result + (feeobjid != null ? feeobjid.hashCode() : 0);
        return result;
    }
}
